package com.meta.act.app.tenant.exception;

import com.meta.framework.exception.ErrorCode;

/**
 * @ClassName HouseException
 * @Description House 异常类
 * @Author M.simple
 * @Date 2019/6/13 3:28
 * @Version 1.0
 **/
public class TenantException extends RuntimeException{

    private String code;

    /**
     * @Author M.simple
     * @Description //TODO
     * @param
     * @return
     **/
    public TenantException() {
    }

    /**
     * @Author M.simple
     * @Description //TODO
     * @param
     * @return
     **/
    public TenantException(String message) {
        super(message);

    }

    /**
     * @Author M.simple
     * @Description //TODO
     * @param code:message
     * @return
     **/
    public TenantException(String code, String message) {
        super(message);
        this.code = code;
    }

    public TenantException(ErrorCode errorCode) {
        super(errorCode.getErrorMsg());
        this.code = errorCode.getErrorCode();
    }

    /**
     * @Author M.simple
     * @Description //TODO
     * @param
     * @return
     **/
    public TenantException(String message, Throwable cause) {
        super(message, cause);

    }

    /**
     * @Author M.simple
     * @Description //TODO
     * @param
     * @return
     **/
    public TenantException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);

    }

    /**
     * @Author M.simple
     * @Description //TODO
     * @param
     * @return
     **/
    public TenantException(Throwable cause) {
        super(cause);

    }
}
